Skip to content

fix!: return parsed job logs and remove git_repository_url - #5

Merged
robingenz merged 2 commits into
mainfrom
fix/job-logs-and-git-repository-url
Oct 1, 2026
Merged

robingenz merged 2 commits into
mainfrom
fix/job-logs-and-git-repository-url

Conversation

@robingenz

Copy link
Copy Markdown
Member

Fixes two existing bugs found while syncing with the Node SDK (#2).

  • jobs.logs() returned the raw JSON response text, although the API returns a list of log lines. It now returns List[JobLog] (number, payload, timestamp), matching the Node SDK's getLogs().
  • apps.update(git_repository_url=...) had no effect because the API no longer accepts gitRepositoryUrl. The parameter is removed; use apps.repository.set() to link a repository.

The README and the native build example are updated accordingly.

Breaking change: jobs.logs() returns List[JobLog] instead of str, and apps.update() no longer accepts git_repository_url.

for log in client.jobs.logs(job_id):
    print(log.payload)

- `jobs.logs()` returns a list of `JobLog` instead of the raw
  JSON response text
- remove `git_repository_url` from `apps.update()`, which the
  API ignores; use `apps.repository.set()` instead

BREAKING CHANGE: `jobs.logs()` returns `List[JobLog]` instead of
`str`, and `apps.update()` no longer accepts `git_repository_url`.
@robingenz robingenz added the breaking change Breaking change label Oct 1, 2026
Copilot AI balanced review requested due to automatic review settings October 1, 2026 11:42
@robingenz robingenz added bug/fix Something isn't working breaking change Breaking change labels Oct 1, 2026
@robingenz robingenz self-assigned this Oct 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation matches the documented API behavior and includes appropriate model exports, tests, and usage updates.

Review effort: Balanced
Findings: None

What changed in this PR

Updates job log handling to return typed models and removes an obsolete app update parameter.

Changes:

  • Parses job logs into JobLog objects.
  • Removes git_repository_url from app updates.
  • Updates tests, README, and native build example.
File Description
tests/​test_jobs.py Tests parsed job logs.
src/​capawesome_cloud/​resources/​jobs.py Returns typed log entries.
src/​capawesome_cloud/​resources/​apps.py Removes obsolete repository URL parameter.
src/​capawesome_cloud/​models.py Defines JobLog.
src/​capawesome_cloud/​__init__.py Exports JobLog.
README.md Documents iterating over logs.
examples/​trigger_native_build.py Prints individual log payloads.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@robingenz
robingenz merged commit 7306c46 into main Oct 1, 2026
7 checks passed
@robingenz
robingenz deleted the fix/job-logs-and-git-repository-url branch October 1, 2026 11:51
@github-actions github-actions Bot mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking change bug/fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants